#pragma once

#include <QTcpServer>

class TcpServer : public QTcpServer
{
	Q_OBJECT

public:
	TcpServer(int tcpPort, QObject *parent = nullptr);
	~TcpServer();

	bool run();

protected:
	virtual void incomingConnection(qintptr handle) override;

signals:
	void signalTcpMsgData(QByteArray& arr);

private slots:;
	void readSocket();

private:
	int tcpPort;
};
